package com.frank.towerrush.util;

import java.util.List;

import com.frank.towerrush.R;
import com.frank.towerrush.service.SoundService;
import com.frank.towerrush.split.Tower;

/**
 * 系统参数
 * 
 * @author Frank
 *
 */
public final class SystemParameter {

    private SystemParameter() {
    }

    /**
     * 屏幕高度 (px)
     */
    public static int screenHeight;
    /**
     * 屏幕宽度(px)
     */
    public static int screenWidth;

    /**
     * 生命值
     */
    public static int hreat;
    /**
     * 金钱
     */
    public static int gold;

    /**
     * 声音开关
     */
    public static boolean soundOn = true;
    /**
     * 音效音量
     */
    public static int soundVolume = 5;
    /**
     * 音乐音量
     */
    public static int musicVolume = 5;

    public static List<Tower> towers;

    public static SoundService soundService;

    /**
     * 系统音乐ID
     * 
     * @author Frank
     *
     */
    public class SystemAudio {
        private SystemAudio() {

        }

        /**
         * 背景音乐
         */
        public static final int MUSIC_PLAY = R.raw.play;
        /**
         * 胜利音乐
         */
        public static final int MUSIC_WIN = R.raw.heros;
    }

    /**
     * 系统字符
     * 
     * @author Frank
     *
     */
    public class SystemString {
        private SystemString() {

        }

        /**
         * 应用名
         */
        public static final String APP_NAME = "TowerRush";

        /**
         * 偏好文件名
         */
        public static final String PREFERENCES_PATH = "configure";

        /**
         * 偏好名 声音开关
         */
        public static final String PREFERENCES_SOUND_ON = "SoundOn";
        /**
         * 偏好名 音效音量
         */
        public static final String PREFERENCES_SOUND_VOLUME = "SoundVolume";
        /**
         * 偏好名 音乐音量
         */
        public static final String PREFERENCES_MUSIC_VOLUME = "MusicVolume";
        /**
         * 偏好名 生命值
         */
        public static final String PREFERENCES_HREAT = "Hreat";
        /**
         * 偏好名 金钱
         */
        public static final String PREFERENCES_GOLD = "Gold";

        public static final String INTENT_EXTRA_MAPID = "mapID";
    }
}
